@if(!empty($list))

    <table class="table table-bordered table-hover user-log-table">
        <thead>
        <tr>
            <th>事件</th>
            <th>变动金额</th>
            <th>变动前金额</th>
            <th>变动后余额</th>
            <th>类型</th>
            <th>日期</th>
        </tr>
        </thead>

        @forelse($list as $k=>$v)
            <tr>
                <td>{{ $v['mark'] }}</td>
                <td class="text-danger">{{  $v['money'] }}</td>
                <td class="text-success">{{  $v['before_money'] }}</td>
                <td class="text-primary">{{  $v['after_money'] }}</td>
                <td><span class="badge {{ $v['type']==1?'badge-success':'' }} {{ in_array($v['type'],[2,3,4])?'badge-info':'' }} {{ $v['type']==5?'badge-danger':'' }}">{{ $v->TypeName }}</span></td>
                <td>
                    {{  $v['created_at'] }}

                </td>
            </tr>
        @empty
            <tr>
                <td colspan="6">
                    @include('plugin.hostserver.front.layout.no_item')
                </td>
            </tr>
        @endforelse
    </table>


@endif